package com.mindcraft.shop.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.Transient;

import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("market_hotTopic")
public class MarketHotTopic {
    @TableField("id")
    private Integer id;
    @TableField("title")
    private String title;

    @TableField("subheading")
    private String subheading;

    @TableField("label")
    private String label;
    @TableField("source")
    private Integer source;

    @TableField("sort")
    private Integer sort;

    @TableField("inner_sort_id")
    private Integer innerSortId;

    @TableField("popularity")
    private String popularity;

    @TableField("view_count")
    private Integer viewCount;

    @TableField("related")
    private Integer related;
    /**
     * 创建时间
     */
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;


    //用于是否显示排行
    @Transient
    @TableField(exist = false)
    private Integer hotChartsFlag;


    @Transient
    @TableField(exist = false)
    private List<MarketTopicSku> marketTopicSkuList;

    @Transient
    @TableField(exist = false)
    private List<String> topicInnerSortList;

}
